/*
 * --------------------------------------------------------------
 * Copyright ©  2015 Hangzhou DtDream Technologies Co.,Ltd.
 * --------------------------------------------------------------
 *      Product: 协同数治
 *  Module Name: design
 * Date Created: 2023/3/6
 *  Description: TODO
 * --------------------------------------------------------------
 * Modification History
 * DATE            NAME            Description
 * --------------------------------------------------------------
 * 2023/3/6       yewj            TODO
 * --------------------------------------------------------------
 */

package com.dtdream.pattern.memento;

import java.util.ArrayList;
import java.util.List;

/**
 * TODO
 *
 * @Author: yewj
 **/
public class Caretaker {

    private List<Memento>  mementoList = new ArrayList<>();

    public void add(Memento memento) {
        mementoList.add(memento);
    }

    public Memento get(int index) {
        return mementoList.get(index);
    }

}
